using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Builder
{
   public partial class frmNumDaysToBackup : Form
   {
      public int _DaysToBackup = 1;

      public frmNumDaysToBackup(int DaysToBackup)
      {
         _DaysToBackup = DaysToBackup;
         InitializeComponent();
      }

      private void btnOK_Click(object sender, EventArgs e)
      {
         this.DialogResult = DialogResult.OK;
         _DaysToBackup = (int)spnedtDays.Value;
         this.Hide();
      }

      private void btnCancel_Click(object sender, EventArgs e)
      {
         this.DialogResult = DialogResult.Cancel;
         this.Close();
      }
   }
}